package com.huabo.contract.service.impl;

import com.huabo.contract.config.DateBaseConfig;
import com.huabo.contract.oracle.entity.TblCyhwBasicuninspection;
import com.huabo.contract.oracle.mapper.TblCyhwBasicuninspectionMapper;
import com.huabo.contract.service.TblCyhwBasicuninspectionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TblCyhwBasicuninspectionServiceImpl implements TblCyhwBasicuninspectionService {

    @Resource
    private TblCyhwBasicuninspectionMapper tblCyhwBasicuninspectionMapper;

    @Override
    public void insertBybudget(TblCyhwBasicuninspection tcp) {
        if(DateBaseConfig.DATABASETYPE.equals("Oracle")) {
            tblCyhwBasicuninspectionMapper.insertBybudget(tcp);
        } else {
            tblCyhwBasicuninspectionMapper.insertBybudget(tcp);
        }
    }
}
